package com.gimhon.login.repository.jpa;

import com.gimhon.login.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * 账户管理
 */
@Repository
public interface UserRepository extends JpaRepository<User, String> {
    User findByUsername(String userName);

    User findByUsernameAndPassword(String userName, String passWord);
}
